package com.yu.waterstation;

import com.yu.waterstation.app.moudles.student.pojo.Student;
import io.swagger.annotations.Api;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@Api(tags = "启动类")
@SpringBootApplication
@MapperScan("com.yu.waterstation.**.mapper")
@RestController
public class WaterStationApp {
    public static void main(String[] args) {
        SpringApplication.run(WaterStationApp.class, args);
    }

    @GetMapping("/status")
    public String run(){
        return "服务器正常运行" ;
    }
}
